<template>
  <div>
    <div class="topnavAndBanner">
      <svg class="test-icon">
        <use xlink:href="#icon-VUE"></use>
      </svg>
      <Topnav />
      <div class="banner">
        <h1>酷UI</h1>
        <h2>个性化的UI组件</h2>
        <h2>适用于初学者</h2>
        <p class="actions">
          <a href="https://github.com">GitHub</a>
          <router-link to="/doc" class="router-a"
                       style="background: white;color: #02bcb0;border: 1px #02bcb0 solid;">起步
          </router-link>
        </p>
      </div>
    </div>
    <div class="features">
      <ul>
      <li>
        <svg>
          <use xlink:href="#icon-vue"></use>
        </svg>
        <h3>基于 Vue 3</h3>
        <p class="p1">抢先体验Vue3，与尤雨溪同步思想</p>
      </li>
      <li>
        <svg>
          <use xlink:href="#icon-ts"></use>
        </svg>
        <h3>基于 TypeScript </h3>
        <p class="p2">感受TypeScript与Vue3的无缝配合</p>
      </li>
      <li>
        <svg>
          <use xlink:href="#icon-light"></use>
        </svg>
        <h3>代码易读</h3>
         <p class="p3">源码简洁，可维护性强</p>
      </li>
    </ul>
    </div>
  </div>
</template>

<script lang="ts">
import Topnav from "../components/Topnav.vue";
export default {
  components: { Topnav },
};
</script>

<style lang="scss" scoped>
$green: #02bcb0;
$border-radius: 4px;
$color: #007974;

.topnavAndBanner {
  background: linear-gradient(
    145deg,
    rgba(227, 255, 253, 1) 0%,
    rgba(183, 233, 230, 1) 100%
  );
  clip-path: ellipse(80% 60% at 50% 40%);
}

.features {
   margin: 64px auto;
  padding: 0 16px;
  @media (min-width: 800px) {
    width: 800px;
     >ul {
      >li {
        width: 50%;
      }
    }
  }
  @media (min-width: 1200px) {
    width: 1200px;
     >ul {
      >li {
        width: 33.3333%;
      }
    }
  }
  >ul {
    display: flex;
    flex-wrap: wrap;
    >li {
      margin: 16px 0;
      display: grid;
      justify-content: start;
      align-content: space-between;
      grid-template-areas:
        "icon title"
        "icon text";
      grid-template-columns: 80px auto;
      grid-template-rows: 1fr auto;
      >svg {
        grid-area: icon;
        width: 64px;
        height: 64px;
      }
      >h3 {
        grid-area: title;
        font-size: 28px;
      }
      >p {
        grid-area: text
      }
    }
  }
}

.banner {
   color: $color;
  padding: 100px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  > .actions {
    padding: 8px 0;
    a {
      margin: 0 8px;
      background: $green;
      color: white;
      display: inline-block;
      padding: 8px 24px;
      border-radius: $border-radius;
      &:hover {
        text-decoration: none;
      }
    }
  }
}

.p1 {
  color: #00ffa9;
}

.p2 {
  color: #0087ff;
}

.p3 {
  color: #ff8300;
}

.test-icon {
  width: 1000px;
  opacity: 0.1;
  position: absolute;
  right: 0px;
  height: 500px;
  top: 25px;
  z-index: -1;
}

h4{
  color: black;
  margin-top: 20px;
}

storge{
  color: #007974;
}
</style>
